package com.iswoak.netctoss.util;

import java.util.List;
/**
 * 给当前这个类定义一个泛型
 */
public class PageUtil<E> {
	//当前页码
	private Integer currPage;
	//每页条数
	private Integer pageSize;
	//记录总数
	private Integer count;
	//查询到的集合
	private List<E> list;
	public Integer getCurrPage() {
		return currPage;
	}
	public void setCurrPage(Integer currPage) {
		this.currPage = currPage;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public List<E> getList() {
		return list;
	}
	public void setList(List<E> list) {
		this.list = list;
	}
	public PageUtil(Integer currPage, Integer pageSize, Integer count,
			List<E> list) {
		super();
		this.currPage = currPage;
		this.pageSize = pageSize;
		this.count = count;
		this.list = list;
	}
	public PageUtil() {
		super();
	}
	@Override
	public String toString() {
		return "PageUtil [currPage=" + currPage + ", pageSize=" + pageSize
				+ ", count=" + count + ", list=" + list + "]";
	}
	
}
